package cn.com.woxitech.dev.model.gen;

import java.util.ArrayList;
import java.util.List;

public class WmRoomChathistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WmRoomChathistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUseruuidIsNull() {
            addCriterion("userUuid is null");
            return (Criteria) this;
        }

        public Criteria andUseruuidIsNotNull() {
            addCriterion("userUuid is not null");
            return (Criteria) this;
        }

        public Criteria andUseruuidEqualTo(String value) {
            addCriterion("userUuid =", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidNotEqualTo(String value) {
            addCriterion("userUuid <>", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidGreaterThan(String value) {
            addCriterion("userUuid >", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidGreaterThanOrEqualTo(String value) {
            addCriterion("userUuid >=", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidLessThan(String value) {
            addCriterion("userUuid <", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidLessThanOrEqualTo(String value) {
            addCriterion("userUuid <=", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidLike(String value) {
            addCriterion("userUuid like", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidNotLike(String value) {
            addCriterion("userUuid not like", value, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidIn(List<String> values) {
            addCriterion("userUuid in", values, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidNotIn(List<String> values) {
            addCriterion("userUuid not in", values, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidBetween(String value1, String value2) {
            addCriterion("userUuid between", value1, value2, "useruuid");
            return (Criteria) this;
        }

        public Criteria andUseruuidNotBetween(String value1, String value2) {
            addCriterion("userUuid not between", value1, value2, "useruuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidIsNull() {
            addCriterion("roomUuid is null");
            return (Criteria) this;
        }

        public Criteria andRoomuuidIsNotNull() {
            addCriterion("roomUuid is not null");
            return (Criteria) this;
        }

        public Criteria andRoomuuidEqualTo(String value) {
            addCriterion("roomUuid =", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidNotEqualTo(String value) {
            addCriterion("roomUuid <>", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidGreaterThan(String value) {
            addCriterion("roomUuid >", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidGreaterThanOrEqualTo(String value) {
            addCriterion("roomUuid >=", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidLessThan(String value) {
            addCriterion("roomUuid <", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidLessThanOrEqualTo(String value) {
            addCriterion("roomUuid <=", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidLike(String value) {
            addCriterion("roomUuid like", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidNotLike(String value) {
            addCriterion("roomUuid not like", value, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidIn(List<String> values) {
            addCriterion("roomUuid in", values, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidNotIn(List<String> values) {
            addCriterion("roomUuid not in", values, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidBetween(String value1, String value2) {
            addCriterion("roomUuid between", value1, value2, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andRoomuuidNotBetween(String value1, String value2) {
            addCriterion("roomUuid not between", value1, value2, "roomuuid");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Long value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Long value) {
            addCriterion("time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Long value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Long value) {
            addCriterion("time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Long value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Long value) {
            addCriterion("time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Long> values) {
            addCriterion("time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Long> values) {
            addCriterion("time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Long value1, Long value2) {
            addCriterion("time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Long value1, Long value2) {
            addCriterion("time not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andNewsrcIsNull() {
            addCriterion("newSrc is null");
            return (Criteria) this;
        }

        public Criteria andNewsrcIsNotNull() {
            addCriterion("newSrc is not null");
            return (Criteria) this;
        }

        public Criteria andNewsrcEqualTo(String value) {
            addCriterion("newSrc =", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcNotEqualTo(String value) {
            addCriterion("newSrc <>", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcGreaterThan(String value) {
            addCriterion("newSrc >", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcGreaterThanOrEqualTo(String value) {
            addCriterion("newSrc >=", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcLessThan(String value) {
            addCriterion("newSrc <", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcLessThanOrEqualTo(String value) {
            addCriterion("newSrc <=", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcLike(String value) {
            addCriterion("newSrc like", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcNotLike(String value) {
            addCriterion("newSrc not like", value, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcIn(List<String> values) {
            addCriterion("newSrc in", values, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcNotIn(List<String> values) {
            addCriterion("newSrc not in", values, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcBetween(String value1, String value2) {
            addCriterion("newSrc between", value1, value2, "newsrc");
            return (Criteria) this;
        }

        public Criteria andNewsrcNotBetween(String value1, String value2) {
            addCriterion("newSrc not between", value1, value2, "newsrc");
            return (Criteria) this;
        }

        public Criteria andPptIsNull() {
            addCriterion("ppt is null");
            return (Criteria) this;
        }

        public Criteria andPptIsNotNull() {
            addCriterion("ppt is not null");
            return (Criteria) this;
        }

        public Criteria andPptEqualTo(String value) {
            addCriterion("ppt =", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptNotEqualTo(String value) {
            addCriterion("ppt <>", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptGreaterThan(String value) {
            addCriterion("ppt >", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptGreaterThanOrEqualTo(String value) {
            addCriterion("ppt >=", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptLessThan(String value) {
            addCriterion("ppt <", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptLessThanOrEqualTo(String value) {
            addCriterion("ppt <=", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptLike(String value) {
            addCriterion("ppt like", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptNotLike(String value) {
            addCriterion("ppt not like", value, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptIn(List<String> values) {
            addCriterion("ppt in", values, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptNotIn(List<String> values) {
            addCriterion("ppt not in", values, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptBetween(String value1, String value2) {
            addCriterion("ppt between", value1, value2, "ppt");
            return (Criteria) this;
        }

        public Criteria andPptNotBetween(String value1, String value2) {
            addCriterion("ppt not between", value1, value2, "ppt");
            return (Criteria) this;
        }

        public Criteria andSecIsNull() {
            addCriterion("sec is null");
            return (Criteria) this;
        }

        public Criteria andSecIsNotNull() {
            addCriterion("sec is not null");
            return (Criteria) this;
        }

        public Criteria andSecEqualTo(String value) {
            addCriterion("sec =", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecNotEqualTo(String value) {
            addCriterion("sec <>", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecGreaterThan(String value) {
            addCriterion("sec >", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecGreaterThanOrEqualTo(String value) {
            addCriterion("sec >=", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecLessThan(String value) {
            addCriterion("sec <", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecLessThanOrEqualTo(String value) {
            addCriterion("sec <=", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecLike(String value) {
            addCriterion("sec like", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecNotLike(String value) {
            addCriterion("sec not like", value, "sec");
            return (Criteria) this;
        }

        public Criteria andSecIn(List<String> values) {
            addCriterion("sec in", values, "sec");
            return (Criteria) this;
        }

        public Criteria andSecNotIn(List<String> values) {
            addCriterion("sec not in", values, "sec");
            return (Criteria) this;
        }

        public Criteria andSecBetween(String value1, String value2) {
            addCriterion("sec between", value1, value2, "sec");
            return (Criteria) this;
        }

        public Criteria andSecNotBetween(String value1, String value2) {
            addCriterion("sec not between", value1, value2, "sec");
            return (Criteria) this;
        }

        public Criteria andMsgidIsNull() {
            addCriterion("msgid is null");
            return (Criteria) this;
        }

        public Criteria andMsgidIsNotNull() {
            addCriterion("msgid is not null");
            return (Criteria) this;
        }

        public Criteria andMsgidEqualTo(String value) {
            addCriterion("msgid =", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidNotEqualTo(String value) {
            addCriterion("msgid <>", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidGreaterThan(String value) {
            addCriterion("msgid >", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidGreaterThanOrEqualTo(String value) {
            addCriterion("msgid >=", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidLessThan(String value) {
            addCriterion("msgid <", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidLessThanOrEqualTo(String value) {
            addCriterion("msgid <=", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidLike(String value) {
            addCriterion("msgid like", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidNotLike(String value) {
            addCriterion("msgid not like", value, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidIn(List<String> values) {
            addCriterion("msgid in", values, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidNotIn(List<String> values) {
            addCriterion("msgid not in", values, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidBetween(String value1, String value2) {
            addCriterion("msgid between", value1, value2, "msgid");
            return (Criteria) this;
        }

        public Criteria andMsgidNotBetween(String value1, String value2) {
            addCriterion("msgid not between", value1, value2, "msgid");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("state like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("state not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}